# URL一些链接地址
HUAWEI_URL_PREFIX = {
    'cn': 'https://developer.huawei.com/consumer/cn/doc',
    'en': 'https://developer.huawei.com/consumer/en/doc'
}
DOCUMENT_PORTAL = 'https://svc-drcn.developer.huawei.com/community/servlet/consumer/cn/documentPortal'
GET_CATALOG_TREE = DOCUMENT_PORTAL + '/getCatalogTree'
GET_DOCUMENT_BY_ID = DOCUMENT_PORTAL + '/getDocumentById'
HARMONYOS_SAMPLES_GITEE = 'https://gitee.com/organizations/harmonyos_samples/projects'
HARMONYOS_SAMPLES_DEVELOPER = ''
# 获取codelab卡片列表
GET_APPROVED_CARD_LIST_BY_CATEGORY = 'https://svc-drcn.developer.huawei.com/consumer/partnerCodelabsService/v1/developer/codelabs/getApprovedCardListByCategory'
# 查询卡片详细信息
QUERY_CARD_INFO = "https://svc-drcn.developer.huawei.com/consumer/partnerCodelabsService/v1/developer/codelabs/queryCardInfo"

# data常量
CATALOG_NAME_GUIDES = 'harmonyos-guides'
OBJECT_ID_GUIDES = 'application-dev-guide'

CATALOG_NAME_API = 'harmonyos-references'
OBJECT_ID_API = 'development-intro-api'

CATALOG_NAME_BEST_PRACTICES = 'best-practices'
OBJECT_ID_BEST_PRACTICES = 'bpta-harmonyos-features'

CATALOG_NAME_FAQ = 'harmonyos-faqs'
OBJECT_ID_FAQ = 'faqs-ux-design'

CATALOG_NAME_ARCHITECTURE = 'architecture-guides'
OBJECT_ID_ARCHITECTURE = 'practice-auto-app-architecture-v1-0000001903742656'

CATALOG_NAME_OVERVIEW = 'harmonyos-releases'
OBJECT_ID_OVERVIEW = 'overview-allversion'

# 元服务
CATALOG_NAME_ATOMIC_GUIDES = 'atomic-guides'
OBJECT_ID_ATOMIC_GUIDES = 'atomic-development-journey'

CATALOG_NAME_ATOMIC_API = 'atomic-references'
OBJECT_ID_ATOMIC_API = 'atomic-apis-intro'

CATALOG_NAME_ATOMIC_FAQ = 'atomic-faqs'
OBJECT_ID_ATOMIC_FAQ = 'faqs-operational'

CATALOG_NAME_ATOMIC_ASCF = 'atomic-ascf'
OBJECT_ID_ATOMIC_ASCF = 'ascf-overview'

CATALOG_NAME_ATOMIC_OVERVIEW = 'atomic-releases'
OBJECT_ID_ATOMIC_OVERVIEW = 'atomic-releasenotes'


# 代理配置
proxies = {
    'http': 'http://y30054261:1234%23qwer@proxy.huawei.com:8080',
    'https': 'http://y30054261:1234%23qwer@proxy.huawei.com:8080',
}

# headers配置
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36'
}

MAX_SEMAPHORE = 200  # 最大协程数

# 白名单
WHITELIST = [
    'https://registry.khronos.org/vulkan/#apispecs',
    'https://developer.huawei.com/consumer/cn/service/josp/agc/index.html#/',
    'https://developer.huawei.com/consumer/cn/support/feedback/#/?channel=ICS0000',
    'https://communityfile-drcn.op.dbankcloud.cn/FileServer/getFile/cmtyPub/011/111/111/0000000000011111111.20231214182004.98460787201488605095331386542935:50001231000000:2800:E124109F20E5BC94DDB0972D227CC54E98582216E69CA695065ADF1A51632F62.xlsx?needInitFileName=true',
    'https://developer.huawei.com/consumer/cn/service/josp/agc/index.html',
    'https://developer.huawei.com/consumer/cn/support/feedback/#/',
    'https://developer.huawei.com/consumer/cn/support/feedback#/',
    'https://developer.huawei.com/consumer/cn/download/deveco-studio',
    'https://developer.huawei.com/consumer/cn/download/',
    'https://learn.microsoft.com/zh-cn/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v?f=255&MSPPError=-2147217396',
    'https://www.actalis.it/area-download',
    'https://learn.microsoft.com/zh-cn/virtualization/hyper-v-on-windows/reference/hyper-v-requirements',
    'https://semver.org/lang/zh-CN/',
    'https://issuereporter.developer.huawei.com/my-created',
    'http://docs.libuv.org/en/v1.x/api.html',
    'http://libuv.org/',
    'http://localhost:9222/json',
    'http://musl.libc.org/manual.html',
    'http://www.cac.gov.cn/2016-06/28/c_1119122192.htm',
    'http://www.cac.gov.cn/2016-11/07/c_1119867116.htm',
    'http://www.cac.gov.cn/2017-05/02/c_1120902760.htm',
    'http://www.cac.gov.cn/2019-12/20/c_1578375159509309.htm',
    'http://www.cac.gov.cn/2021-03/22/c_1617990997054277.htm',
    'http://www.cac.gov.cn/2021-03/22/c_1617990997054277.htm',
    'http://www.cac.gov.cn/2021-03/22/c_1617990997054277.htm',
    'http://www.cac.gov.cn/2021-08/20/c_1631050028355286.htm',
    'http://www.cac.gov.cn/2021-08/27/c_1631652531585631.htm',
    'http://www.npc.gov.cn/zgrdw/npc/xinwen/2019-05/07/content_2086834.htm',
    'https://262.ecma-international.org/12.0/#module-namespace-exotic-object',
    'https://262.ecma-international.org/12.0/#prod-AwaitExpression',
    'https://262.ecma-international.org/12.0/#prod-FunctionRestParameter',
    'https://262.ecma-international.org/12.0/#prod-SpreadElement',
    'https://262.ecma-international.org/12.0/#sec-%25foriniteratorprototype%25.next',
    'https://262.ecma-international.org/12.0/#sec-asyncgeneratorreject',
    'https://262.ecma-international.org/12.0/#sec-asyncgeneratorresolve',
    'https://262.ecma-international.org/12.0/#sec-createiterresultobject',
    'https://262.ecma-international.org/12.0/#sec-ecmascript-function-objects',
    'https://262.ecma-international.org/12.0/#sec-ecmascript-language-scripts-and-modules',
    'https://262.ecma-international.org/12.0/#sec-exports',
    'https://262.ecma-international.org/12.0/#sec-function-environment-records',
    'https://262.ecma-international.org/12.0/#sec-generator-objects',
    'https://262.ecma-international.org/12.0/#sec-generatorresume',
    'https://262.ecma-international.org/12.0/#sec-getiterator',
    'https://262.ecma-international.org/12.0/#sec-getmodulenamespace',
    'https://262.ecma-international.org/12.0/#sec-gettemplateobject',
    'https://262.ecma-international.org/12.0/#sec-import-calls',
    'https://262.ecma-international.org/12.0/#sec-imports',
    'https://262.ecma-international.org/12.0/#sec-iteratorclose',
    'https://262.ecma-international.org/12.0/#sec-iterator-records',
    'https://262.ecma-international.org/12.0/#sec-properties-of-asyncgenerator-intances',
    'https://262.ecma-international.org/12.0/#sec-properties-of-generator-instances',
    'https://262.ecma-international.org/12.0/#sec-tonumber',
    'https://262.ecma-international.org/12.0/#sec-tonumeric',
    'https://account.huaweicloud.com/usercenter/?agencyId=4a4d3a21c84e4c94b7995314981bf802&amp;region=cn-southwest-2&amp;locale=zh-cn#/userindex/allview',
    'https://arxiv.org/abs/1511.04587',
    'https://cbg.huawei.com/#/group/ipd/DevEcoToolsList',
    'https://ci.openharmony.cn/workbench/cicd/dailybuild/dailylist',
    'https://cldr.unicode.org',
    'https://cldr.unicode.org/index/downloads/cldr-42',
    'https://console.huaweicloud.com/modelarts/?locale=zh-cn&amp;region=cn-southwest-2#/model-studio/authmanage',
    'https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_package_901_9/08/v3/Pnea-AgSSxqtTBC0mzMAwA/DDK-tools-5.1.1.0.zip?HW-CC-KV=V1&amp;HW-CC-Date=20250610T092206Z&amp;HW-CC-Expire=315360000&amp;HW-CC-Sign=019849D9969A194E46CDB535CE7538D776E2AEAADEFAC8EDA57D39CCF2216F62',
    'https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_package_901_9/32/v3/ewX7lVjoT46u90Cl6atItg/kirin9020-plugin-5.1.1.0.zip?HW-CC-KV=V1&amp;HW-CC-Date=20250610T092101Z&amp;HW-CC-Expire=315360000&amp;HW-CC-Sign=4F0AAF2E591A7D20C522EB1129DE599DEE93F70E791CA287C893266541B8143D',
    'https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_package_901_9/e2/v3/yfnoCcpqT1ShE0doMEgVSw/kirinx90-plugin-5.1.1.0.zip?HW-CC-KV=V1&amp;HW-CC-Date=20250610T092000Z&amp;HW-CC-Expire=315360000&amp;HW-CC-Sign=569B69CB03EF0CAC45700D6AFCEC71310AF06291D25F756BADBBAE2F728AABA6',
    'https://datatracker.ietf.org/doc/html/rfc6455#section-5.5.2',
    'https://developer.arm.com/Architectures/ABI',
    'https://developer.huawei.com/consumer/cn/console/overview',
    'https://developer.huawei.com/consumer/cn/console/service/AppService',
    'https://developer.huawei.com/consumer/cn/doc/app/agc-help-harmonyos-testapp-0000001873653977#section22510401333',
    'https://developer.huawei.com/consumer/cn/doc/development/HMSCore-Guides/verification-0000001211587947',
    'https://developer.huawei.com/consumer/cn/doc/distribution/app/agc-help-conversion-rule-description-0000001146614687',
    'https://developer.huawei.com/consumer/cn/download/command-line-tools-for-hmos',
    'https://developer.huawei.com/consumer/cn/download/deveco-codegenie',
    'https://developer.huawei.com/consumer/cn/download/deveco-testing',
    'https://developer.huawei.com/consumer/cn/download/deveco-testing-hypium',
    'https://developer.huawei.com/consumer/cn/download/hismartperf',
    'https://developer.huawei.com/consumer/cn/download/ohpm-repo',
    'https://developer.huawei.com/consumer/cn/hag/hagindex.html#/',
    'https://developer.huawei.com/consumer/cn/hag/hagindex.html?isInFrame=true&amp;lang=zh_CN#/',
    'https://developer.huawei.com/consumer/cn/hag/hagindex.html?isInFrame=true&amp;lang=zh_CN#/agentHome/square',
    'https://developer.huawei.com/consumer/cn/service/ads/publisher/html/index.html?lang=zh',
    'https://developer.huawei.com/consumer/cn/service/josp/agc/index.html#/interactive',
    'https://developer.huawei.com/consumer/cn/service/josp/agc/index.html#/myApp',
    'https://developer.huawei.com/consumer/cn/service/josp/agc/index.html#/myProject',
    'https://developer.huawei.com/consumer/cn/support/feedback/',
    'https://developer.huawei.com/consumer/cn/support/feedback/#',
    'https://developer.huawei.com/consumer/cn/support/feedback/#/add/101704353566310877?level2=101704353626565886&amp;level3=101704354306240980&amp;keyWord=Account Kit',
    'https://developer.huawei.com/consumer/cn/support/feedback/#/add/101704353566310877?level2=101704353626565886&amp;level3=101704354358694993&amp;keyWord=Ads Kit',
    'https://developer.huawei.com/consumer/cn/support/feedback/#/add/101704353566310877?level2=101704353626565886&amp;level3=101704354579010004&amp;keyWord=Game Service Kit',
    'https://developer.huawei.com/consumer/cn/support/feedback/#/add/101704353566310877?level2=101704353626565886&amp;level3=101723605535783370&amp;keyWord=Cloud Foundation Kit&amp;channel=ICS0000',
    'https://developer.huawei.com/consumer/cn/support/feedback/#/add/13?level2=111',
    'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/PluralRules/PluralRules#options',
    'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#options',
    'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#return_value',
    'https://dotnet.microsoft.com/download',
    'https://download.mindspore.cn/model_zoo/official/lite/mobilenetv2_openimage_lite/1.5/mobilenetv2.ms',
    'https://eco-betaclub.rnd.huawei.com/#/download/DevEco Studio/newest',
    'https://fidoalliance.org/',
    'https://fidoalliance.org/passkeys/',
    'https://fidoalliance.org/specifications-overview/',
    'https://h5hosting-drcn.dbankcdn.cn/cch5/crl/pki_CA_RootG2Ca/RootG2Ca.cer',
    'https://hihealthbase-drcn.things.hicloud.com/healthkit/fileServer/getFile/plain/statutes/000/001/044/0000100000000001044.20240829085730.86499642368766203545820936006783:20740817085749:100005355:DBD975A8478DC681283B75DE2AD73917B3B11446827CA32763910C56B2011CE8.zip',
    'https://hihealthbase-drcn.things.hicloud.com/healthkit/fileServer/getFile/private/HuaweiHealthLicenseUsageGuidelines/000/001/044/0000100000000001044.20240417151926.42901802932267224964253317308041:20740405152107:100005355:87328F4DFA033BC9DD8B6A03A0E9EB60C11ABA7EF92169AC42A4C205D3EA7514.pdf',
    'https://hihealthbase-drcn.things.hicloud.com/healthkit/fileServer/getFile/private/HuaweiHealthLicenseUsageGuidelines/000/001/044/0000100000000001044.20240417160150.64977181324752114137620022856507:20740405160241:100005355:DBEDC693E5482E439BFCDF5A73D1B74F41B5BEABF7F62F4AA2807330B8335543.pdf',
    'https://hihealthbase-drcn.things.hicloud.com/healthkit/fileServer/getFile/private/huaweiLogo/000/001/044/1000000000000001044.20231121144534.39714294158320889793671141568467:20731108144750:100005355:F16C5DE4AF6D9AC89675DAD1BB4D12821B5BCC039AFCADFF9ECEA7852757F9AA.zip',
    'https://hihealthbase-drcn.things.hicloud.com/healthkit/fileServer/getFile/protected/docTemplateZh/000/001/044/1000000000000001044.20250714003858.97794800280943716662489602627215:20750702004051:100005355:CBD4513F116D37E1E5BFE212973516547B1FE4DD61C5388E3248AC5086AEC255.docx',
    'https://hihealthbase-drcn.things.hicloud.com/healthkit/fileServer/getFile/protected/docTemplateZh/000/001/044/1000000000000001044.20250714004003.08070939173044201994197977210474:20750702004051:100005355:48EA6076E27CA666DBABA8D928732D533089BF5EFF3B59659AA61450512C39BC.docx',
    'https://hihealthbase-drcn.things.hicloud.com/healthkit/fileServer/getFile/protected/docTemplateZh/000/001/044/1000000000000001044.20250714004023.16343515928607914481291350148827:20750702004051:100005355:8B4E5C1B220B83172183582BD53C8BCCF57BC737EFA1CF4F4599FEBFAD555A87.docx',
    'https://issuereporter.developer.huawei.com/my-created',
    'https://jwt.io/',
    'https://jwt.io/libraries',
    'https://learn.microsoft.com/zh-cn/windows-server/virtualization/hyper-v/host-hardware-requirements',
    'https://legal.cloud.huawei.com.cn/terms/scope/huawei/ads-hmos/privacy-statement.htm?&amp;code=CN&amp;language=zh-CN&amp;branchid=0&amp;contenttag=default',
    'https://legal.cloud.huawei.com/terms/scope/huawei/autofill/privacy-statement.htm?code=CN&amp;language=zh-CN&amp;version=20250521',
    'https://legal.cloud.huawei.com/terms/scope/huawei/deveco-studio-hmos/privacy-statement.htm?code=CN&amp;branchid=0&amp;language=zh-cn',
    'https://legal.cloud.huawei.com/terms/scope/huawei/id-hmos/privacy-statement.htm?code=CN&amp;language=zh-CN',
    'https://mirrors.ustc.edu.cn/ubuntu-releases/22.04/',
    'https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.3.0/MindSpore/lite/release/linux/x86_64/mindspore-lite-2.3.0-linux-x64.tar.gz',
    'https://ohpm.openharmony.cn',
    'https://openid.net/connect/',
    'https://pki.consumer.huawei.com/ca/cer/Huawei_CBG_ECC_Device_Attestation_Root_CA.cer',
    'https://pki.consumer.huawei.com/ca/cer/RootCaG2Ecdsa.cer',
    'https://privacy.consumer.huawei.com/legal/id/authentication-terms.htm?code=CN&amp;language=zh-CN',
    'https://privacy.consumer.huawei.com/legal/id/authentication-terms.htm?code=CN&amp;language=zh-CN&amp;bgmode=black',
    'https://shiming.gsxt.gov.cn/socialuser-use-rllogin.html',
    'https://SQLite.org/docs.html',
    'https://sqlite.org/pragma.html#pragma_synchronous',
    'https://typescript-eslint.io/rules/no-inferrable-types/#options',
    'https://typescript-eslint.nodejs.cn/rules/no-throw-literal#options',
    'https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#number-skeletons',
    'https://www.agner.org/optimize/calling_conventions.pdf',
    'https://www.bouncycastle.org/latest_releases.html',
    'https://www.cac.gov.cn/2014-08/19/c_1112138363.htm',
    'https://www.hiascend.com/software/cann',
    'https://www.hiascend.com/zh/ascend-c',
    'https://www.khronos.org/registry/webgl/specs/latest/1.0/',
    'https://www.mindspore.cn/lite/docs/zh-CN/master/use/downloads.html#2-3-0',
    'https://www.openmp.org/spec-html/5.0/openmpsu15.html#x25-240001.5.1',
    'https://www.oracle.com/java/technologies/javase-downloads.html',
    'https://www.postman.com/trl2dtse/workspace/hms-core/request/12678619-eaeee13e-9ea1-4f05-9ecc-baefadd2ff75',
    'https://www.theuwa.com/standard?cate=3',
    'https://www.unicode.org/reports/tr15/#Norm_Forms',
    'https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table',
    'https://www.w3.org/TR/clipboard-apis/#async-clipboard-api',
    'https://www.w3.org/TR/clipboard-apis/#clipboard-events-and-interfaces',
    'https://www.w3.org/TR/css-fonts-3/#font-feature-settings-prop',
    'https://zh.cppreference.com/w/c/header',
    'mailto:accountkit@huawei.com',
    'mailto:agconnect@huawei.com',
    'mailto:devConnect@huawei.com',
    'mailto:hihealth@huawei.com',
    'mailto:hwpush@huawei.com',
    'mailto:locationkit@huawei.com',
    'https://developer.huawei.com/consumer/cn/customerService/#/bot-dev-top/faq-top/faq-talk-top',
    'https://developer.petalmaps.com/console/studio/'
]

